<?php

namespace common\models\Oauthsinawb;

use Yii;

/**
 * This is the model class for table "oauth_sinawb".
 *
 * @property integer $id
 * @property integer $parent_id
 * @property string $code
 * @property string $type
 * @property string $store_range
 * @property string $store_dir
 * @property string $value
 * @property integer $sort_order
 */
class Oauthsinawb extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'oauth_sinawb';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['uid'], 'integer'],
            [['openid', 'access_token', 'uid'], 'required'],
            [['openid', 'access_token'], 'string'],
            [['openid', 'access_token'], 'string', 'max' => 100]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'openid' => 'Oid',
            'access_token' => 'access_token',
            'uid' => '用户id',
        ];
    }
}
